package com.atguigu.gulimall.product.controller.ceshi;


import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.entity.vo.CateJsonVo;
import com.atguigu.gulimall.product.feign.WareFeignService;
import com.atguigu.gulimall.product.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("product/test")
public class ProductTestController {

    @Autowired
    private CategoryService categoryService;

    @Autowired
    WareFeignService wareFeignService;

    @RequestMapping("/list")
    //@RequiresPermissions("product:attrattrgrouprelation:list")
    public R list(){
        List<Long> skuIdS=new ArrayList<>();
        skuIdS.add(1l);

        wareFeignService.getSkuHasStock(skuIdS);

     /*   Map<String, List<CateJsonVo>> catalogJson = categoryService.getCatalogJson();

        return R.ok().put("page",catalogJson);*/
        return R.ok();
    }

}
